# quiet/debug/loglevel=<0~8>
# KL_ARGS_LOG				+= quiet
KL_ARGS_LOG				+= loglevel=6
KL_ARGS_LOG				+= initcall_debug no_console_suspend

# KL_ARGS_DBG				+= earlyprintk=serial,ttyS0
KL_ARGS_DBG				+= early_ioremap_debug
KL_ARGS_DBG				+= slub_debug
# KL_ARGS_DBG				+= debug_objects sched_verbose vm_debug
KL_ARGS_DBG				+= memblock=debug

# debug_boot_weak_hash: Make pointers available for printing early in the boot sequence.
# no_hash_pointers: just for debugging
KL_ARGS					+= debug_boot_weak_hash no_hash_pointers
KL_ARGS					+= bootconfig

ifeq ($(FTRACE),1)
# KL_ARGS					+= trace_options=sym-addr,print-parent trace_event=initcall:* trace_buf_size=1M
KL_ARGS					+= trace_options=sym-addr,print-parent,func_stack_trace trace_buf_size=1M

# tracer: function
KL_ARGS					+= ftrace=function ftrace_filter="*gpio*,*pinctrl*,*pinconf*,of_fwnode_add_links"

# tracer: function_graph
# KL_ARGS					+= ftrace=function_graph ftrace_graph_max_depth=5 ftrace_graph_filter="sched_init,*_rootfs*,*mount*" ftrace_graph_notrace="*_*lock"
# KL_ARGS					+= ftrace=function_graph ftrace_graph_max_depth=5 ftrace_graph_notrace="*_*lock" ftrace_graph_filter="*gpio*,*pinctrl*,*pinconf*"
endif

# process command line input
KL_ARGS					+= $(KL_ARGS_LOG) $(KL_ARGS_$(RFS_MODE))
